import java.awt.Dimension;
import java.awt.image.BufferedImage;

public class Item {

    BufferedImage img;
    private int x;
    private int y;

    Item() {
        img = null;
    }

    Item(BufferedImage image, int xVal, int yVal) {
        img = image;
        this.x = xVal;
        this.y = yVal;
    }
    boolean setX(int xVal){
        try {
            this.x = xVal
        } catch (Exception e) {
            System.out.println(e);
            return false;
        }
        return true;
    }
    boolean setY(int yVal){
        try {
            this.y = yVal
        } catch (Exception e) {
            System.out.println(e);
            return false;
        }
        return true;
    }
}